home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / DRIVER.CAB / ecactive.cab / SCRPTCOD < prev    next >
Encoding:
Text File  |  1992-08-24  |  2.0 KB  |  107 lines

  1. *debug 1
  2.  
  3. *********************************************************
  4. *                                *
  5. * This script file is used to configure the CODEX Modem *
  6. *                                *
  7. *********************************************************
  8.  
  9. set_port 1
  10. set_speed 2400
  11. set_parity NO_PARITY
  12. set_data_bits 8
  13. open_comm
  14. iferror bye_comm
  15. print "Initialization successful "
  16.  
  17.  
  18. type "AT",0d,0a
  19. iferror bye_t1
  20. timeout 15
  21. match "OK"
  22. iferror bye_m1
  23.  
  24. ***************************
  25. *              *
  26. *   Programming modem     *
  27. *              *
  28. ***************************
  29.  
  30.  
  31. **********************************
  32. *** Setting Modulation Options ***
  33. **********************************
  34.  
  35. type "AT&L0*MM0*AY1*LS0*MX7*MN0*AP0*CA0&X0*RT2Y0*MD1&G0",0d,0a
  36. match "OK"
  37. iferror MODERR
  38.  
  39.  
  40. *************************************************************
  41. *** Setting Error Correction and Data Compression Options ***
  42. *************************************************************
  43.  
  44. type "AT*SM3*EC0*DC1*BK0*MF1*SL0",0d,0a
  45. match "OK"
  46. iferror EC/DC
  47.  
  48.  
  49. **********************************************
  50. *** Set ACU (Automatic Call Unit) settings ***
  51. **********************************************   
  52.  
  53. type "AT&M1*DA0*AA1E0*MS1Q0V1*XC0",0d,0a
  54. match "OK"
  55. iferror ATFORM
  56.  
  57.  
  58. ****************************
  59. *** Set Terminal Options ***
  60. ****************************
  61.  
  62. type "ATM*FL1*SC1&D6*RS0*CT3&R0*DL0&C1*CD3*MR0&S1*OS0*DT0",0d,0a
  63. match "OK"
  64. iferror TERMERR
  65.  
  66. * TELCO OPTIONS (SET MODEM SPEAKER ON AND VOLUME MEDIUM)
  67. type "ATM1",0d,0a
  68. match "OK"
  69. iferror TELCO
  70.  
  71.  
  72. goto bye
  73. :TELCO
  74. print "TELCO ERROR"
  75. goto exit
  76. :bye_t1
  77. print "Error during modem programming. Type failed."
  78. goto exit
  79. :TERMERR
  80. print "ERROR WHILE SETTING TERMINAL OPTIONS"
  81. goto exit
  82. :EC/DC
  83. print "ERROR WHILE SETTING EC/DC OPTIONS"
  84. goto exit
  85. :MODERR
  86. print "ERROR WHILE SETTING MODULATION OPTIONS"
  87. goto exit
  88. :ATFORM
  89. print "ERROR WHILE SETTING ACU OPTIONS"
  90. goto exit
  91.  
  92. :bye_m1
  93. print "No answer from modem."
  94. goto exit
  95.  
  96. :bye_comm
  97. print "**** INIT ERROR !!"
  98. goto exit
  99.  
  100.  
  101.  
  102. :bye 
  103. print "Modem programmed successfully"
  104.  
  105. :exit
  106.  
  107.